﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Common.Extensions
{
    public static class ListGetRandom
    {
        public static T getRandom<T>(this List<T> l)
        {
            return l[(new Random()).Next(0, l.Count - 1)];
        }
    }
}
